using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dimok.Web.UI;

public partial class Admin_StateFlowTree : System.Web.UI.UserControl {
	protected int StateFromID { get { return hdnStateFromID.Text == "" ? -1 : int.Parse(hdnStateFromID.Text); } }
	protected override void OnInit(EventArgs e) {
		base.OnInit(e);
		PreRender += new EventHandler(Admin_StateFlowTree_PreRender);
	}

	void Admin_StateFlowTree_PreRender(object sender, EventArgs e) {
		JS.ScriptLocalIDs(this,selStates,selGroups,selStateTables,hdnStateFromID);
	}
	protected override void EnsureChildControls() {
		base.EnsureChildControls();
		StateFlow_ActionsByPath.TableName = selStateTables.SelectedValue;
		StateFlow_ActionsByPath.StateID = StateFromID;
	}
	protected void Page_Load(object sender, EventArgs e) {
		//StateFlow_ActionsByPath.StateFromID = StateFromID;
	}
	protected void StateFromID_ValueChanged(object sender,EventArgs e) {
		//StateFlow_ActionsByPath.StateFromID = StateFromID;
	}
}
